const path = require('path')
const resolve = dir => {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: '/',
  chainWebpack: config => {
    config.resolve.alias
      .set('_c', resolve('src/components'))
  },
  devServer: {
    host: 'localhost',
    proxy: {
      '/api': {
        target: `http://zp.eapjfz.com/recruit`,
        // target: `http://localhost:8088`,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    disableHostCheck: true
  }
}
